package cn.ghx.xboot.mapper;

import cn.ghx.xboot.attach.Attachment;
import cn.ghx.xboot.common.dto.IdNameDto;
import cn.ghx.xboot.store.Store;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author ghx
* @createDate 2024-03-08 10:45:13
* @Entity cn.ghx.boot.store.Store
*/
public interface StoreMapper extends BaseMapper<Store> {

    Boolean removeMedias(@Param("id") String id);

    Boolean saveMedias(@Param("id") String id, @Param("attIds")  List<String> attIds);

    List<Attachment> getMedias(@Param("id") String id);

    List<IdNameDto> getAllName(@Param("adcode") String adcode);
}




